<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改培训')" />
            <th:block th:include="include :: datetimepicker-css" />
</head>
<style>
    .jltable{
        margin: auto;
    }
    .jltable th,td{
        min-height: 40px;
        min-width: 50px;
        border: 1px solid #eee;
        padding: 10px;
    }
</style>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-px-edit" th:object="${lwpqPx}">
        <input name="id" th:field="*{id}" type="hidden">
        <h4 class="form-header h4">培训管理</h4>
        <table class="jltable">
            <tbody>
            <tr>
                <td><label class="control-label">姓名</label></td>
                <td><input th:field="*{name}" name="name" class="form-control" type="text"></td>
                <td><label class="control-label">身份证</label></td>
                <td><input th:field="*{sfzh}" name="sfzh" class="form-control" type="text"></td>
            </tr>
            <tr>
                <td><label class="control-label">培训内容</label></td>
                <td colspan="3"><textarea th:field="*{pxnr}" name="pxnr" class="form-control"></textarea></td>
            </tr>
            <tr>
                <td><label class="control-label">开始时间</label></td>
                <td>
                    <div class="input-group date">
                        <input th:value="${#dates.format(lwpqPx.kssj, 'yyyy-MM-dd')}" name="kssj" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </td>
                <td><label class="control-label">结束时间：</label></td>
                <td>
                    <div class="input-group date">
                        <input th:value="${#dates.format(lwpqPx.jssj, 'yyyy-MM-dd')}" name="jssj" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </td>
            </tr>

            <tr>
                <td><label class="control-label">培训地点：</label></td>
                <td><input th:field="*{pxdd}" name="pxdd" class="form-control" type="text"></td>
                <td><label class="control-label">培训老师：</label></td>
                <td><input th:field="*{pxls}" name="pxls" class="form-control" type="text"></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "lwpq/px";
    $("#form-px-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-px-edit').serialize());
        }
    }

            $("input[name='kssj']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });

            $("input[name='jssj']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });
</script>
</body>
</html>